package codequity.three.demo35;

public class Client35 {
    public static void main(String[] args) {
        Son son = new Son();
        son.doSomething();

    }
}


class Father {
    public Father() {
        new Other();
    }
}

class Son extends Father {
    public void doSomething() {
        System.out.println("Hi,show me something");
    }
}

class Other {
    public Other() {
        new Son();
    }
}
